package BigIntegerdemo;

import java.math.BigInteger;

public class demo2 {
    public static void main(String[] args) {
        BigInteger b1 = BigInteger.valueOf(10);
        BigInteger b2 = BigInteger.valueOf(5);
        System.out.println(b1.add(b2));
        System.out.println(b1.subtract(b2));
        System.out.println(b1.multiply(b2));
        System.out.println(b1.divide(b2));
        BigInteger[] b3 = b1.divideAndRemainder(b2);
        for (int i = 0; i < b3.length; i++) {
            System.out.println(b3[i]);
        }
    }
}
